package com.tx.blog.user.dao;

import com.tx.blog.user.vo.UserVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author tx
 * @description
 * @date  2019/4/29 14:13
 * @param  * @Param: null
 * @return 
**/
@Repository
public interface IUserDao {

    int registerUser(UserVo user);

    UserVo findUserByUserName(UserVo user);

    void saveUserArticle(@Param("user_id") String userId, @Param("article_id") Long articleId);

    void deleteUserArticle(@Param("user_id")String userId, @Param("article_id")String articleId);

    UserVo findUserByUserId(String userId);

    List<UserVo> findUsers();
}
